import http from "@/utils/request";

//  获取所有商品信息的接口
export function getAllOrderRequest (currentPage,pageSize) {
    return http({
        url:'/order',
        method:'get',
        data:{},
        params:{currentPage,pageSize}
    })
}

//  获取销量榜前6名的接口
export function getTopSalesRequest () {
    return http({
        url:'/order/getTopSales',
        method:'get',
        data:{}
    })
}

//  获取本月 已 / 未支付订单的接口
export function getPayThisMonthRequest (status) {
    return http({
        url:'/order/getPayThisMonth',
        method:'get',
        data:{},
        params:{status}
    })
}